"""


"""
from rest_framework.serializers import ModelSerializer
from rest_framework import serializers

from goods.models import GoodsChannel


class ChannelSerializer(ModelSerializer):

    category = serializers.StringRelatedField(read_only=True)
    group = serializers.StringRelatedField(read_only=True)

    category_id =serializers.IntegerField()
    group_id = serializers.IntegerField()


    class Meta:
        model = GoodsChannel
        exclude = ("create_time", "update_time")

